package com.abc.service;

import com.abc.entity.User;
import com.abc.entity.UserLoginDTO;
import com.abc.service.ex.InsertException;
import com.abc.service.ex.UsernameDuplicateException;

public interface IUserService {
    void reg(User user) throws UsernameDuplicateException, InsertException;
    /**
     * 登录认证
     * @param loginDTO 登录信息
     */
    void login(UserLoginDTO loginDTO);
}
